package com.leqicheng.tenon;

import android.content.Context;
import android.webkit.JavascriptInterface;

class TenonJavaScript {
    private int downloadedSize = 0;
    private int fileSize = 0;
    private Context mContext;
    private boolean download = false;
    private String mGameKey;
    private String mGameIconUrl;
    private String mChannelKey = "";
    private String mUserId;
    private static String BASE_DOWNLOAD_URL = "https://tenon-x.com/";
    private static String BASE_FILENAME = "Tenon";
    private static String PACKAGENAME = "com.leqicheng.tenon";

    public TenonJavaScript(Context mContxt,String channelKey, String userId) {
        this.mContext = mContxt;
        mUserId = userId;
        mChannelKey = channelKey;
    }

    @JavascriptInterface
    public void startGame(String name) {
        mGameKey = name;
        mGameIconUrl = "";
        GameLoader gL = new GameLoader(mContext, mChannelKey, mGameKey, mUserId);
        gL.startGame();

    }

}